
package vu.cs.heuristieken;

public class Placement implements Cloneable {
    protected Entity   entity;
    protected Position position;

    public Placement(Entity entity, Position position) {
        this.entity   = entity;
        this.position = position;
    }

    public Entity getEntity() {
        return this.entity;
    }

    public Position getPosition() {
        return this.position;
    }

    public int getValue() {
        return this.entity.getValue();
    }

    public Placement clone() 
        throws CloneNotSupportedException {
        Placement clone = (Placement) super.clone();
        clone.entity    = this.entity.clone();
        clone.position  = this.position.clone();
        return clone;
    }
}
